<HTML><HEAD><TITLE>HashTool.js</TITLE></HEAD><BODY>
<A NAME="_top_"></A><PRE><A HREF="index.html">Index Files</A> </PRE><HR/>
<H1>File HashTool.js</H1>
 Provides hash algorithms utils. <P><DL><DT><B>Author:</B></DT><DD>Carlos Eduardo Goncalves</DD></DL></P>
<HR/>
<A HREF=#HashTool>HashTool</A><BR/>
<A HREF=#HashTool.prototype.encodeString>HashTool.prototype.encodeString</A><BR/>
<A HREF=#HashTool.prototype.encodeQuery>HashTool.prototype.encodeQuery</A><BR/>
<HR/>
<A NAME=HashTool></A>
<H2>Constructor HashTool</H2><PRE>function HashTool()</PRE> <p>Generic hash tool constructor. </p><P></P><BR/><BR/>
<A NAME=HashTool.prototype.encodeString></A>
<H2> Method HashTool.prototype.encodeString</H2><PRE>HashTool.prototype.encodeString = function(value)</PRE> <p>Calculates the hash string for the value based on  algorithm defined on engine configuration (md5 or sha1).</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>value</I></TD><TD><code>String</code> value to encode. </TD></TR><TR><TD><I>return</I></TD><TD>Hash code calculated.</TD></TR></TABLE></P><BR/><BR/>
<A NAME=HashTool.prototype.encodeQuery></A>
<H2> Method HashTool.prototype.encodeQuery</H2><PRE>HashTool.prototype.encodeQuery = function(query)</PRE> <p>Calculates the hash string for the query string based on  algorithm defined on engine configuration (md5 or sha1).</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>query</I></TD><TD>Query string value to encode. </TD></TR><TR><TD><I>return</I></TD><TD>Query string with values replaced by respective hash code.</TD></TR></TABLE></P><BR/><BR/>
</BODY></HTML>
